init: Avoid ABI change for build salt
authorBen Hutchings <ben@decadent.org.uk>
Sun, 15 Jul 2018 22:44:02 +0000 (23:44 +0100)
committerSalvatore Bonaccorso <carnil@debian.org>
Fri, 20 Jul 2018 21:08:27 +0000 (22:08 +0100)
<linux/build-salt.h> indirectly includes <linux/elf.h>, which
apparently adds some type definitions that change the symbol
version for init_uts_ns.

Hide this change from genksyms.

Gbp-Pq: Topic debian
Gbp-Pq: Name init-avoid-abi-change-for-build-salt.patch

init/version.c

index ef4012ec43751122eea2e55e86f9b5ec8faad3c9..f6449a1481a22a2d96a1fdf3697170c01f2d607d 100644 (file)
@@ -7,7 +7,9 @@
  */
 
 #include <generated/compile.h>
+#ifndef __GENKSYMS__
 #include <linux/build-salt.h>
+#endif
 #include <linux/export.h>
 #include <linux/uts.h>
 #include <linux/utsname.h>